package blog.rupesr.spring.bean;

import blog.rupesr.spring.annotation.BeanInjector;

/**
 * The Class HelloServiceImpl.
 * 
 * @author Rupesh
 */
public class HelloServiceImpl implements HelloService{

	/** The hello bean. */
	@BeanInjector(beanName = "helloBean")
	private HelloBean helloBean;

	/**
	 * Gets the hello bean.
	 * 
	 * @return the hello bean
	 */
	public HelloBean getHelloBean() {
		return helloBean;
	}

	/**
	 * Sets the hello bean.
	 * 
	 * @param helloBean
	 *            the new hello bean
	 */
	public void setHelloBean(HelloBean helloBean) {
		this.helloBean = helloBean;
	}

	/**
	 * Say hello.
	 * 
	 * @param name
	 *            the name
	 * 
	 * @return the string
	 */
	public String sayHello(String name) {
		return this.getHelloBean().sayHello(name);
	}

}
